package com.hirsi.common.module.auth.vo.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

@EqualsAndHashCode(callSuper = true)
@ApiModel("账号密码登录入参")
@Data
public class AccountLoginParam extends CheckCaptchaParam {

    @ApiModelProperty(value = "用户名/手机", required = true)
    @NotEmpty(message = "请输入用户名/手机")
    private String account;

    @ApiModelProperty(value = "密码", required = true, position = 1)
    @NotEmpty(message = "请输入密码")
    private String password;

    @ApiModelProperty(value = "记住我，勾选登录时会携带刷新令牌，有效期7天，默认false", position = 4)
    private Boolean remember;
}
